package cn.springboot.admin;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * admin
 *
 * @author junrui.wang
 * @create 2017/6/6
 */
@RestController
@EnableAutoConfiguration
@RequestMapping("/admin")
public class Admin {

    @RequestMapping("/home")
    String home(){
        return "hello world";
    }

    @RequestMapping("/{adminName}")
    String admin(@PathVariable String adminName){
        return "hello " + adminName + " login in";
    }

}
